package com.huluobo.a2202mvvm_im_douyindemo.db;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

import com.huluobo.a2202mvvm_im_douyindemo.bean.Money;

/**
 * Created by LC on 2024/5/11.
 */
@Dao
public interface MoneyDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertMoney(Money money);

    @Update
    void updateMoney(Money money);

    @Delete
    void deleteMoney(Money money);

    @Query("select * from user_money where username=:username")
    Money queryMoneyInfoByName(String username);
}
